//
//  NetworkHandler.h
//  UI19_网络封装(delegate回调)
//
//  Created by Scott on 16/1/7.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol NetworkHandlerDelegate <NSObject>

- (void)handlerDidComplete:(id)result;

@end

@interface NetworkHandler : NSObject


@property (nonatomic, assign)id<NetworkHandlerDelegate> delegate;

@property (nonatomic, assign) NSInteger age;


- (void)networkHandlerJSONWithURL:(NSString *)urlString;


+ (void)handlerJSONWithURL:(NSString *)urlString delegate:(id<NetworkHandlerDelegate>)delegate;





@end
